package com.extendy.onlyofficerapiddeployment.controller;

import com.extendy.onlyofficerapiddeployment.service.FileService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    @Resource
    private FileService fileService;

    /**
     * 首页
     */
    @GetMapping("/")
    public String index(Model model) {
        model.addAttribute("fileList", fileService.getFileList());
        return "index";
    }

}
